package com.example.msg.controller;

import com.example.msg.api.MsgApi;
import com.example.msg.dto.MsgDTO;
import com.example.msg.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MsgController implements MsgApi {

    @Autowired
    private MsgService msgService;

    @Override
    public void prepareMsg(MsgDTO obj) {
        this.msgService.prepareMsg(obj);
    }

    @Override
    public void confirmMsg(MsgDTO obj) {
        this.msgService.confirmMsg(obj);
    }

    @Override
    public void deleteMsg(MsgDTO obj) {
        this.msgService.deleteMsg(obj);
    }
}
